<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ice="http://www.icesoft.com/icefaces/component"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:icefusion="http://icefusion.googlecode.com/icefusion">
<body>
<!--
	 	Implements 

		<icefusion:messageDialog title="my_title" text="my_text"
			rendered="true|false" eventBean="#{my_button_event_bean}" />

		"title"/"text" for textual output.
		"eventBean" implements IMessageDialog for individual button management.
		Using com.googlecode.icefusion.ui.commons.dialog.MessageDialog	
-->
<ui:component>
	<ice:form>
		<ice:panelPopup autoCentre="false" draggable="false" modal="true"
			rendered="#{(not empty rendered) ? rendered : messageDialog.show}" 
			visible="#{(not empty rendered) ? rendered : messageDialog.show}">
			<f:facet name="header">
				<ice:panelGrid>
					<ice:outputText value="#{(not empty title) ? title : ((not empty messageDialog.title) ? messageDialog.title : icefusion['application.dialog.message.title'])}"/>
				</ice:panelGrid>
			</f:facet>
			<f:facet name="body">
				<ice:panelGrid>
					<ice:panelGrid columns="2" columnClasses="icePanelPopupImage icePanelPopupText">
						<ice:graphicImage url="#{iceFusionConsts.skinBase}/#{context.skin}/images/messageDialog.png" />
						<ice:outputText value="#{(not empty text) ? text : ((not empty messageDialog.text) ? messageDialog.text : icefusion['application.dialog.message.text'])}" 
							/>
					</ice:panelGrid>
					<ice:panelGrid columns="1" styleClass="icePanelPopupButtons">
						<c:if test="#{not empty eventBean}">
							<ice:commandButton value="    #{icefusion['application.dialog.message.button.ok']}    " 
								action="#{eventBean.messageDialogButtonOk}" styleClass="icePanelPopupButton"/>
						</c:if>
						<c:if test="#{empty eventBean}">
							<ice:commandButton value="    #{icefusion['application.dialog.message.button.ok']}    " 
								action="#{messageDialog.messageDialogButtonOk}" styleClass="icePanelPopupButton"/>
						</c:if>
					</ice:panelGrid>
				</ice:panelGrid>
			</f:facet>
		</ice:panelPopup>
	</ice:form>
</ui:component>
</body>
</html>